# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=gops
pkgver=0.3.25
pkgrel=0
pkgdesc="List and diagnose Go processes currently running on your system"
url="https://github.com/google/gops"
license="BSD-3-Clause"
arch="all"
makedepends="go"
source="https://github.com/google/gops/archive/v$pkgver/gops-$pkgver.tar.gz"

export GOPATH="$srcdir"
export GOFLAGS="$GOFLAGS -trimpath -modcacherw"

build() {
	go build
}

check() {
	go test ./...
}

package() {
	install -Dm755 gops -t "$pkgdir"/usr/bin/
}

sha512sums="
dcec3a1fd1617594ccc9f03cb863a24c471959fcb163b933cc4aa0bc1271f04f2af122f0ea510b51c171d4dc58b325c857f8bbd16fbc68b654c136037293cbf2  gops-0.3.25.tar.gz
"
